/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package bmacotada.orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Cuestionario_1Criteria extends AbstractORMCriteria {
	public final IntegerExpression cu_id_cuestionario;
	public final StringExpression descripcion;
	
	public Cuestionario_1Criteria(Criteria criteria) {
		super(criteria);
		cu_id_cuestionario = new IntegerExpression("cu_id_cuestionario", this);
		descripcion = new StringExpression("descripcion", this);
	}
	
	public Cuestionario_1Criteria(PersistentSession session) {
		this(session.createCriteria(Cuestionario_1.class));
	}
	
	public Cuestionario_1Criteria() throws PersistentException {
		this(bmacotada.orm.Taller1BMPersistentManager.instance().getSession());
	}
	
	public Paciente_1Criteria createPaciente_1RutCriteria() {
		return new Paciente_1Criteria(createCriteria("paciente_1Rut"));
	}
	
	public bmacotada.orm.Pregunta_1Criteria createPregunta_1Pr_id_preguntaCriteria() {
		return new bmacotada.orm.Pregunta_1Criteria(createCriteria("ORM_Pregunta_1Pr_id_pregunta"));
	}
	
	public Cuestionario_1 uniqueCuestionario_1() {
		return (Cuestionario_1) super.uniqueResult();
	}
	
	public Cuestionario_1[] listCuestionario_1() {
		java.util.List list = super.list();
		return (Cuestionario_1[]) list.toArray(new Cuestionario_1[list.size()]);
	}
}

